package com.sourcetrip.raw.adt;

/**
 * @author: ZhouBert
 * @date: 2020/11/18
 * @description:	双向链表中的节点
 */
public class MyDoublyNode<E> {

	private MyDoublyNode<E> pre;
	private MyDoublyNode<E> next;

	private E element;

	public MyDoublyNode(MyDoublyNode<E> pre, MyDoublyNode<E> next, E element) {
		this.pre = pre;
		this.next = next;
		this.element = element;
	}

	public MyDoublyNode<E> getPre() {
		return pre;
	}

	public void setPre(MyDoublyNode<E> pre) {
		this.pre = pre;
	}

	public MyDoublyNode<E> getNext() {
		return next;
	}

	public void setNext(MyDoublyNode<E> next) {
		this.next = next;
	}

	public E getElement() {
		return element;
	}

	public void setElement(E element) {
		this.element = element;
	}
}
